package router

import (
	"design-base/handler"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {

	r := gin.Default()
	r.POST("add", handler.Add)
	r.GET("list", handler.List)
	r.GET("detail", handler.Detail)
	return r
}
